import request from '@/utils/request'

// 查询药品-处方关联列表
export function listMedMo(query) {
  return request({
    url: '/medicine/medMo/list',
    method: 'get',
    params: query
  })
}

// 查询药品-处方关联详细
export function getMedMo(id) {
  return request({
    url: '/medicine/medMo/' + id,
    method: 'get'
  })
}

// 新增药品-处方关联
export function addMedMo(data) {
  return request({
    url: '/medicine/medMo',
    method: 'post',
    data: data
  })
}

// 修改药品-处方关联
export function updateMedMo(data) {
  return request({
    url: '/medicine/medMo',
    method: 'put',
    data: data
  })
}

// 删除药品-处方关联
export function delMedMo(id) {
  return request({
    url: '/medicine/medMo/' + id,
    method: 'delete'
  })
}

// 导出药品-处方关联
export function exportMedMo(query) {
  return request({
    url: '/medicine/medMo/export',
    method: 'get',
    params: query
  })
}